<?php
/**
 * This is areas/index template file. 
 *
 * @copyright     Copyright 2008-2010, LilCake.net
 * @link          http://lilcake.net LilCake.net
 * @package       lil
 * @subpackage    lil.views.areas
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<h1><?php __d('lil', 'Lil List'); ?></h1>
<?php
	foreach($areas as $area) {
?>
	<h2><?php echo $this->Html->clean($area['Area']['name']); ?></h2>
	<p><?php echo $this->Html->clean($area['Area']['description']); ?></p>
	<p>
	<?php
		echo $this->Html->link(
			__d('lil', 'Read more', true), 
			array(
				'controller' => 'posts',
				'action'     => 'index',
				'area'       => $area['Area'][Configure::read('Lil.areaSlugField')]
			)
		);
	?>
	</p>
<?php
	}
?>